(function(){
	'use strict';
	angular.module('controllers.workOrderData.indexMgmt',[])
	.controller('IndexMgmtController',IndexMgmtController);
	function IndexMgmtController($scope,CoreService){
		var spans = ['/query','/tradePercentage','/contrastiveAnalysis'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
	}
})();